package com.wn.sk.product.tast;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author yellow Docter
 * @date 2022 -11-08
 * @desc
 */
//@Component
public class SpringJob {

    /**
     * 定时任务的表达式
     * cron = "0/5 * * * * ?"  定时任务的表达式
     *
     *
     */
//    @Scheduled(cron = "0/5 * * * * ?")
    public void execute(){
        System.out.println("SpringJob.execute" + new Date());
    }

}
